// eslint-disable-next-line no-unused-vars
import {getRequest,postRequest} from "@/utils/request";

/**
 *  用户登陆
 * @param url 登陆请求接口
 * @param params 参数
 * @returns {AxiosPromise}
 * @constructor
 */
export const getRecord = () => {
    return getRequest(`/record/getRecord`);
};

export const getByArea = (areaName) => {
    return getRequest(`/record/getRecordbyarea?areaName=${areaName}`);
};
export const getByType = (typeId) => {
    return getRequest(`/record/getRecordbytype?typeId=${typeId}`);
};
export const getByDate = (date) => {
    return getRequest(`/record/getRecordBydate?date=${date}`);
};
export const getTypeCount = (stime) => {
    return getRequest(`/record/typecount?stime=${stime}`);
};
export const getOldCount = (stime) => {
    return getRequest(`/record/oldcount?stime=${stime}`);
};
export const getOldTrace = (oldster,date) => {
    return getRequest(`/record/getTrace?oldsterId=${oldster}&date=${date}`);
};


